#include <dao.h>
#include <btBulletDynamicsCommon.h>

#include "btConstraintSolver.h"
#include "btSequentialImpulseConstraintSolver.h"

static void construct(DaoContext *ctx, DValue *p[], int N) {
    btConstraintSolver* ptr = new btSequentialImpulseConstraintSolver();

    DaoCData *cdata = DaoContext_PutCData(ctx, ptr, &btSequentialImpulseConstraintSolverTyper);
};

static void destruct(void *self) {
//    delete (btSequentialImpulseConstraintSolver*) self;
}

static DaoFuncItem meth[] = {
    { construct, "btSequentialImpulseConstraintSolver()" },
    { NULL, NULL }
};

DaoTypeBase btSequentialImpulseConstraintSolverTyper = {
    "btSequentialImpulseConstraintSolver",
    NULL,
    NULL,               			/* constant */
    meth,       				/* methods */
    { &btConstraintSolverTyper, NULL },     	/* parent type */
    { NULL },
    destruct,
    NULL
};
